package com.cindata


class RepaymentCSVImporter extends CSVImpoter
{

    /*******************按照实体将csv对应的列进行排序列出*******************************/
    static columnsSet = [
        [ name: 'contractNo'],
        [ name: 'repaymentDate',type: 'Date'],
        [ name: 'repaymentType'],
        [ name: 'shouldRepaymentAmount'],
        [ name: 'shouldRepaymentCapital'],
        [ name: 'shouldRepaymentInterest'],
        [ name: 'practicalChargeBackDate',type: 'Date'],
        [ name: 'practicalRepaymentAmount'],
        [ name: 'practicalRepaymentCapital'],
        [ name: 'practicalRepaymentInterest'],
        [ name: 'practicalRepaymentFine'],
        [ name: 'overdueDate',type: 'Date'],
        [ name: 'overdueState'],
        [ name: 'continuousOverdueNumber'],
        [ name: 'fineAmount'],
        [ name: 'prepaymentType'],
        [ name: 'beforePrepaymentDuration'],
        [ name: 'afterPrepaymentDuration'],
    ]

    RepaymentCSVImporter(){
        columns = columnsSet
        startRow = 2
    }

    @Override
    def read(InputStream inputStream,String charsetName) {
        return super.read(inputStream,charsetName)
    }
}
